<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>test.py</title>
<meta name="generator" content="KF5::SyntaxHighlighting (Python)"/>
</head><body style="color:#1f1c1b"><pre>
<span style="color:#898887;"># comment with </span><span style="color:#e85848;background-color:#451e1a;font-weight:bold;">ALERT</span>

<span style="color:#898887;">''' multiline</span>
<span style="color:#898887;">    comment</span>
<span style="color:#898887;">    </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">###</span>
<span style="color:#898887;">    '''</span>

// alert check, no word delimiter check at start of word, bug <span style="color:#b08000;">397719</span>
<span style="color:#898887;">#</span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span>

a =<span style="color:#b08000;"> 100_000</span>
b =<span style="color:#b08000;"> 856_264</span>.<span style="color:#b08000;">65</span>
c =<span style="color:#b08000;"> 0x420_F52</span>

<span style="font-weight:bold;">def</span> func(x):
    <span style="color:#898887;">&quot;&quot;&quot; EXTENDED API docs &quot;&quot;&quot;</span>
    <span style="font-weight:bold;">if</span> x == <span style="color:#b08000;">42</span>:
        func()
        c1 = {}
        c2 = {
            <span style="color:#b08000;">2.4</span>,
            <span style="color:#b08000;">0x42</span>,
            }
        a1 = []
        a2 = [
            <span style="color:#bf0303;">&quot;a&quot;</span>, <span style="color:#b08000;">032</span>, (
                )]
    <span style="font-weight:bold;">else</span>:
        <span style="color:#644a9b;font-weight:bold;">print</span>(<span style="color:#bf0303;">&quot;&quot;&quot;multi</span>
<span style="color:#bf0303;">            line</span>
<span style="color:#bf0303;">            string&quot;&quot;&quot;</span>)
        <span style="color:#644a9b;font-weight:bold;">print</span>(<span style="color:#bf0303;">&quot;single \</span>
<span style="color:#bf0303;">                continued line &quot;</span>)
        <span style="color:#644a9b;font-weight:bold;">print</span>(<span style="color:#bf0303;">'single line'</span>)
    <span style="font-weight:bold;">return</span> <span style="color:#644a9b;font-weight:bold;">float</span>(<span style="color:#644a9b;font-weight:bold;">len</span>(a2))


<span style="font-weight:bold;">def</span> test_f_literals():
    <span style="color:#ff5500;">f'xy'</span>
    <span style="color:#ff5500;">f'x</span><span style="color:#3daee9;">{</span>bar<span style="color:#3daee9;">}</span><span style="color:#ff5500;">y'</span>
    <span style="color:#ff5500;">f'x</span><span style="color:#3daee9;">{</span>bar[<span style="color:#bf0303;">&quot;baz&quot;</span>]<span style="color:#3daee9;">}</span><span style="color:#ff5500;">y'</span>
    <span style="color:#ff5500;">f'x</span><span style="color:#3daee9;">{</span>bar[<span style="color:#bf0303;">&quot;baz&quot;</span>]<span style="color:#3daee9;">}</span><span style="color:#ff5500;">y</span><span style="color:#924c9d;">\n</span><span style="color:#ff5500;">'</span>

    <span style="color:#ff5500;">f'x</span><span style="color:#3daee9;">{</span>bar[<span style="color:#bf0303;">&quot;baz&quot;</span>]<span style="color:#3daee9;">!r}</span><span style="color:#ff5500;">y</span><span style="color:#924c9d;">\n</span><span style="color:#ff5500;">'</span>
    <span style="color:#ff5500;">f'x</span><span style="color:#3daee9;">{</span>bar[<span style="color:#bf0303;">&quot;baz&quot;</span>]<span style="color:#3daee9;">:.2}</span><span style="color:#ff5500;">y</span><span style="color:#924c9d;">\n</span><span style="color:#ff5500;">'</span>

a = <span style="color:#bf0303;">&quot;Escapes in String </span><span style="color:#924c9d;">\U12345678</span><span style="color:#bf0303;"> </span><span style="color:#924c9d;">\xAB</span><span style="color:#bf0303;"> </span><span style="color:#924c9d;">\&quot;</span><span style="color:#bf0303;">&quot;</span>
<span style="color:#898887;">&quot;Escapes in Doc/Comment String </span><span style="color:#924c9d;">\u1234</span><span style="color:#898887;"> </span><span style="color:#924c9d;">\xAb</span><span style="color:#898887;"> </span><span style="color:#924c9d;">\&quot;\\</span><span style="color:#898887;">&quot;</span>
<span style="color:#898887;">''' Doc/Comment String </span><span style="color:#924c9d;">\N{123}</span><span style="color:#898887;"> </span><span style="color:#924c9d;">\'</span><span style="color:#898887;">'''</span>
<span style="color:#898887;">&quot;&quot;&quot; Doc/Comment String </span><span style="color:#924c9d;">\17</span><span style="color:#898887;"> </span><span style="color:#924c9d;">\x1f</span><span style="color:#898887;"> </span><span style="color:#924c9d;">\n</span><span style="color:#898887;"> </span><span style="color:#924c9d;">\&quot;</span><span style="color:#898887;"> </span><span style="color:#924c9d;">\\</span><span style="color:#898887;">&quot;&quot;&quot;</span>
</pre></body></html>
